import request from "@/utils/request"

export const getRecordListApi = (params = {}) => {
  return request.get('/record/', { params })
}

export const createRecordApi = (data, type) => {
  return request.post('/record/?type=' + type, data)
}

export const updateRecordApi = (data, type) => {
  return request.patch(`/record?type=${type}`, data);
}

export const deleteRecordApi = (data) => {
  return request.delete(`/record/`, data)
}